﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

// Reviewed
#pragma once

#include "IInstanceInput.h"
#include "Vector3d.h"

namespace gcmp
{
    /// \brief 线式或多点式构件创建所需的数据结构。
    class GCMP_MODEL_INTERFACE_EXPORT IPointArrayInstanceInput : public IInstanceInput
    {
    public:
        /// \brief 创建线式或多点式构件创建所需的数据结构。
        /// \param pDoc 构件文档指针
        /// \param planeId 构件关联平面Id
        /// \param familyId 构件的族Id
        /// \param familyType 构件的族类型名称
        /// \param points 创建构件的点组
        /// \return 返回点式构件创建所需的数据结构的指针
        static OwnerPtr<IPointArrayInstanceInput> Create(
            IDocument* pDoc,
            const ElementId& planeId,
            const ElementId& familyId,
            const std::wstring& familyType,
            const std::vector<gcmp::Vector3d>& points);

        /// \brief 析构函数
        virtual ~IPointArrayInstanceInput(){}

        /// \brief 获取创建构件的点组
        /// \return 返回创建构件的点组
        virtual const std::vector<gcmp::Vector3d>& GetPoints() const = 0;

        /// \brief 设置创建构件的点组
        /// \param points 创建构件的点组
        virtual void SetPoints(const std::vector<gcmp::Vector3d>& points) = 0;

        /// \brief 获取构件初始高度
        /// \return 返回构件初始高度
        virtual double GetHeight() const = 0;

        /// \brief 设置构件初始高度
        /// \param height 构件初始高度
        virtual void SetHeight(double height) = 0;
    };
}

